package com.zhm.springcloud;

import com.zhm.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * Date： 2021/3/7 22:04
 *
 * @author ZHM
 */
@SpringBootApplication
// eureka 客户端（类似去培训公司上课的员工）
@EnableEurekaClient
// 指定“CLOUD-PAYMENT-SERVICE” ，使用自定义的负载策略
@RibbonClient(name="CLOUD-PAYMENT-SERVICE",configuration= MySelfRule.class )
public class OrderMain8002 {

    public static void main(String[] args) {
        SpringApplication.run(OrderMain8002.class,args);
    }

}
